import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import App from './App.vue'
import { createPinia } from 'pinia'
import { registerStore } from './store'
import { directive } from './utils/directive'
import { router } from './router'

import './assets/icons/iconfont/iconfont'
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/svg-icon'
import '@/assets/styles/index.scss'


const app = createApp(App)
app.use(createPinia())

// 注册 Pinia
registerStore()

// 注册 自定义指令
directive(app)

app.use(router)
app.use(SvgIcon)
app.use(ElementPlus)
app.mount('#app')
